package com.nuanshui.heatedloan.fund.integration.form;

import com.nuanshui.framework.lang.SysStringUtils;

import java.io.Serializable;

public class PayForm implements Serializable {
	
	/** 
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
	 */ 
	private static final long serialVersionUID = -7367216041759642452L;

	private String sign;//签名
	
	private String timestamp;//时间戳
	
    private String opt;//操作
    private String orderNum;//订单号，根据不同的业务订单号不同
    
    private String payType;//支付方式
    
    private String optional;//扩展属性
    private Integer payPrice;//支付的价格
    
    private String password;//密码
    
    private String safeToken;//用户的safetoken
    
    private String userId;//用户id
    
    private boolean notCheckPrivileges = false; //是否执行权限校验
    
    private String phone;//用户的手机号
    
    
    


	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public boolean isNotCheckPrivileges() {
		return notCheckPrivileges;
	}

	public void setNotCheckPrivileges(boolean notCheckPrivileges) {
		this.notCheckPrivileges = notCheckPrivileges;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getSafeToken() {
		return safeToken;
	}

	public void setSafeToken(String safeToken) {
		this.safeToken = safeToken;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getPayPrice() {
		return payPrice;
	}

	public void setPayPrice(Integer payPrice) {
		this.payPrice = payPrice;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}

	public String getOpt() {
		return opt;
	}

	public void setOpt(String opt) {
		this.opt = opt;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getOptional() {
		return optional;
	}

	public void setOptional(String optional) {
		this.optional = optional;
	}
	
	/**
	 * 获取支付的业务类型
	 * @param 
	 * @author guohao
	 * @date 2016年3月7日 下午3:52:57
	 */
	public String getPayBizType() {
		if(SysStringUtils.isEmpty(orderNum)) return "-1";
		return this.orderNum.substring(7,10);
		
		
	}
	
	

}
